package com.clss.emergencycall.base;

import android.Manifest;

/**
 * 静态常量
 * Created by LiuV on 2017/6/13.
 */

public class Constant {
    public static final String APP_TOKEN = "APP_TOKEN";     //APP登录后拿到的token

    public static final String ACTIVITY_NAME = "activity_name";
    //addVideoCase用到
    public static final String VIDEO_CASE_INFO = "VIDEO_CASE_INFO";  //addVideoCase成功后拿到的entity
    public static final String ADD_VIDEO_LIST = "ADD_VIDEO_LIST";  //addVideoCase成功后拿到的List
    public static final String IS_SILENCE_CALL = "IS_SILENCE_CALL";
    public static final String IS_TEST_CALL = "IS_TEST_CALL";
    public static final String IS_C2C_CALL = "IS_C2C_CALL";
    public static final String IS_VOICE_CALL = "IS_VOICE_CALL";
    public static final String CALL_TYPE = "CALL_TYPE";
    public static final String CALL_VIDEO_DISPLAY_TYPE = "CALL_VIDEO_DISPLAY_TYPE";
    public static final String CALL_110 = "110";
    public static final String CALL_119 = "119";
    public static final String CALL_122 = "122";
    public static final String CALL_101 = "101";
    public static final String INTENT_TYPE = "intent_type";
    public static final String AUDIO = "audio/*";
    public static final String VIDEO = "video/*";
    public static final String IMAGE = "image/jpg";

    public static final String WX_APP_ID = "wx6ffc6ec350423947";
    public static final String WX_PAY_APP_ID = "wx475872f7fd72bb32";
    public static final String WX_SECRET = "3a6a764adfa51e21989f6399b494139b";

    //上传type (1,2 亲友守护上传  345 聊天功能上传)
    public static final String UPLOAD_SAFE_IMG = "31";
    public static final String UPLOAD_SAFE_AUDIO = "19";
    public static int SEND_TYPE_MUSIC = 19;
    public static int SEND_TYPE_VIDEO = 18;
    public static int SEND_TYPE_IMG = 17;


    //createChat
    //{"id":"155b5dc0-5029-11e7-ae3f-5100b6ec1147","name":"实时报警","invitee":["34a3b2e0-1a87-11e7-9f92-e125d56ab9b5"],"creator":{"userId":"34a3b2e0-1a87-11e7-9f92-e125d56ab9b5"},"inviter":{"userId":"34a3b2e0-1a87-11e7-9f92-e125d56ab9b5"}}
    public static final String ID = "id";
    public static final String MODEL_ID = "modelId";
    public static final String NAME = "name";
    public static final String TYPE = "type";
    public static final String CASE_ID = "caseId";
    public static final String MEDIA = "media";
    public static final String DATA = "data";
    // Login
    public static final String U_NAME = "userName";
    public static final String U_PASS = "password";
    public static final String resourceCode = "resourceCode";
    public static final String equipment = "equipment";
    public static final String system = "system";
    // RIGISTER
    public static final String R_PHONE = "phone";
    public static final String R_PASS = "password";
    public static final String R_CODE = "verificationCode";
    public static final String R_DESTINATION_CODE = "destinationCode";
    public static final String R_PROVINCE = "province";
    public static final String R_CITY = "city";
    public static final String R_DISTRICT = "district";
    //ResetPass
    public static final String RESET_PHONE = "phone";
    public static final String RESET_PASS = "newPassword";
    public static final String RESET_CODE = "verificationCode";
    //显示WebView
    public static final String POLICE_SERVER_MENU_NAME = "police_server_menu_name";
    public static final String POLICE_SERVER_MENU_ID = "police_server_menu_id";
    public static final String POLICE_SERVER_MENU_ADCODE = "police_server_menu_adcode";
    public static final String POLICE_SERVER_MENU_PARENT_ID = "police_server_menu_parent_id";

    public static final String PARTNER_ID = "1000";

    public static final int UNKNOW_ERROR_CODE = -1;
    public static final String UNKNOW_ERROR_MESSAGE = "网络开小差了，请稍候再试";
    public static final String SAFETY_DETAIL_ID = "safety_detail_id";
    public static final String JAVASCRIPT_ANDROID_TAG = "android";

    public static final String CLOCK_INFO = "CLOCK_INFO";

    public static final String[] sPermissionsArray = {
            Manifest.permission.ACCESS_FINE_LOCATION,
            Manifest.permission.CAMERA,
            Manifest.permission.RECORD_AUDIO,
            Manifest.permission.WRITE_EXTERNAL_STORAGE,
            Manifest.permission.INSTALL_SHORTCUT
    };

    public static final String[] sPermissionContact = {
            Manifest.permission.READ_CONTACTS
    };

    public static final int TYPE_LEFT = 1;
    public static final int TYPE_RIGHT = 2;

    public static final int TYPE_IMAGE = 1;
    public static final int TYPE_VIDEO = 2;
    public static final int TYPE_VOICE = 3;
    public static final int TYPE_TEXT = 4;
    //撤回
    public static final int TYPE_REVOKE= 5;

    public static final int UPLOAD_FILE_TYPE_PHOTO = 15;
    public static final int UPLOAD_FILE_TYPE_VIDEO = 14;
    public static final int UPLOAD_FILE_TYPE_VOICE = 28;

    public static final int UPLOAD_FINISH_CODE = 667;

    public static final String CHAT_FRIEND = "/app/chatroom";
    public static final String CHAT_TOPIC = "/topic/chat.message.";
    public static final String CHAT_MESSAGE = "CHAT_MESSAGE";
    public static final String S_MSG_SEND = "S_MSG_SEND";

    public static final String CHAT_LOGIN = "CHAT_LOGIN";
    public static final String CHAT_LOGOUT = "CHAT_LOGOUT";
    public static final String CHAT_TEST = "CHAT_TEST";
    public static final String CHAT_SELECTION = "CHAT_SELECTION";
    public static final String CHAT_HEART = "已连接";
    //撤回
    public static final String CHAT_REVOKE = "CHAT_REVOKE";

    public static final String[] CASE_TYPE = {
            "请选择",
            "打架斗殴",
            "抢劫",
            "偷窃",
            "聚众赌博",
            "其它"
    };

    //session超时，重新登录
    public static final int SESSION_TIMEOUT = 99;

    //请求超时
    public static final String TIMEOUT_EXCEPTION = "java.net.SocketTimeoutException";

    public static final int REQUEST_CODE_IMAGE = 123;
    public static final int REQUEST_CODE_CAMARE = 223;
    public static final int REQUEST_CODE_VIDEO = 323;


    public static final String TAG = "rance";
    /** 0x001-接受消息  0x002-发送消息**/
    public static final int CHAT_ITEM_TYPE_LEFT = 0x001;
    public static final int CHAT_ITEM_TYPE_RIGHT = 0x002;
    /** 0x003-发送中  0x004-发送失败  0x005-发送成功**/
    public static final int CHAT_ITEM_SENDING = 0x003;
    public static final int CHAT_ITEM_SEND_ERROR = 0x004;
    public static final int CHAT_ITEM_SEND_SUCCESS = 0x005;

    public static final String SEND_IMAGE_MSG_TAG_START = "[img]";
    public static final String SEND_IMAGE_MSG_TAG_END = "[/img]";
    public static final String SEND_VOICE_MSG_TAG_START = "[voice]";
    public static final String SEND_VOICE_MSG_TAG_END = "[/voice]";
    public static final String SEND_VIDEO_MSG_TAG_START = "[video]";
    public static final String SEND_VIDEO_MSG_TAG_END = "[/video]";
    public static final String SEND_ADDRESS_MSG_TAG_START = "[address]";
    public static final String SEND_ADDRESS_MSG_TAG_END = "[/address]";
    public static final String SEND_LATLNG_MSG_TAG_START = "[latlng]";
    public static final String SEND_LATLNG_MSG_TAG_END = "[/latlng]";
    public static final String SEND_ALARMTYPE_MSG_TAG_END = "[/alarmType]";


    public static final String UPLOAD_LATLNG_ABLE = "[selection]";
    public static final String UPLOAD_LATLNG_ABLE_KEY = "selection";

    public static final String VIDEO_CALL_WAS_REJECTED = "video_call_was_rejected";

    public static final int WATCHER_NO_REGIST = 0;
    public static final int WATCHER_IS_REGIST = 1;
    public static final int WATCHER_IS_AGREE = 2;

    public static final int SECURITY_NOTIFICATION_ENTRY_ID = 10000001; //亲友互助在通知栏的ID
    public static final String SECURITY_NOTIFICATION_ENTRY_TITLE = "亲友互助正在守护您..."; //亲友互助在通知栏的title
    public static final String SECURITY_NOTIFICATION_ENTRY_CONTENT = "点击进入亲友互助"; //亲友互助在通知栏的content

    public static final int CHAT_ROOM_NOTIFICATION_ENTRY_ID = 10000002; //警民沟通在通知栏的ID
    public static final String CHAT_ROOM_NOTIFICATION_ENTRY_TITLE = "民警正在赶往现场"; //警民沟通在通知栏的title
    public static final String CHAT_ROOM_NOTIFICATION_ENTRY_CONTENT = "点击与处警民警沟通"; //警民沟通在通知栏的content

    //自定义事件统计
    public static final String EVENTS_SAFE_ACCOMPANY_START = "amount_SafeAccompanyActivity_start"; //开启安全守护
    public static final String EVENTS_SAFE_ACCOMPANY_SHARE_WATCHER = "amount_SafeAccompanyActivity_watcher"; //分享给守护人

    public static final int FIRE_STATUS_ZERO = 0;
    public static final int FIRE_STATUS_ONE = 1;
    public static final int FIRE_STATUS_TWO = 2;
    public static final int FIRE_STATUS_THREE = 3;
    public static final int FIRE_STATUS_FORE = 4;
    public static final int FIRE_STATUS_FIVE= 5;
    public static final int FIRE_STATUS_SIX = 6;
    public static final int PHONE_LENGTH = 11;

    public static final String COMMA = ",";

    public static final int TYPE_CHOICE_RESULT = 5;
    public static final int REQUEST_CODE_VIDEO_FROM_CAMERA = 423;
    public static final String FIRST_TO_APP = "first_to_app";
    public static final String FUNCTION_SWITCH_REGISTER_WITH_ROLE = "registerWithRole";
    public static final String ALL_MODEL = "ALL_MODEL";

    public static final String FUNCTION_SWITCH_PERSON_INFO = "person";//个人中心
    public static final String FUNCTION_SWITCH_OFFER = "wantedBadly";//悬赏任务
    public static final String FUNCTION_SWITCH_PERSON_LOST = "personLost";//寻人启事

    /** 全部应用页面（新） 区分每个大类item功能 */
    public static String ALL_MODEL_ALERT = "alert";
    public static String ALL_MODEL_CLUE = "clue";
    public static String ALL_MODEL_POLICE_SERVICE = "policeService";
    public static String ALL_MODEL_SAFELY = "safety";
    public static String ALL_MODEL_PERSONAL = "personal";
    public static final String ALL_MODEL_PERSONAL_WEB = "web";
    public static final String ALL_MODEL_FUNC = "func";
    public static final String FUNCTION_SWITCH_TEL = "tel";//打电话
    public static final String FUNCTION_SWITCH_SMS = "sms";//发短信

    /** 报警 */
   public static final String FUNCTION_SWITCH_ALARM_SILENCE = "alarmSilence";//静默报警
    public static final String FUNCTION_SWITCH_ALARM_SIM = "alarmSim";//模拟报警
    public static final String FUNCTION_SWITCH_TEL_110 = "tel110"; //拨打110
    public static final String FUNCTION_SWITCH_TEL_122 = "tel122"; //拨打122
    public static final String FUNCTION_SWITCH_SMS_110 = "sms110"; //短信110
    public static final String FUNCTION_SWITCH_ALARM = "alarm";//报警

    //不会配置这个 相关代码可以删除
    public static final String FUNCTION_SWITCH_FIREALARM = "fireAlarm";//火警
    public static final String FUNCTION_SWITCH_ALARM_VOICE = "alarmVoice";//语音报警
    public static final String FUNCTION_SWITCH_ALARM_SWINDLE = "swindle";//诈骗报警
    public static final String FUNCTION_SWITCH_ALARM_ABDUCT = "abduct";//拐卖报警
    public static final String FUNCTION_SWITCH_ALARM_FIRE = "fire";//报警
    public static final String FUNCTION_SWITCH_ALARM_122 = "traffic";//交通报警

    /** 亲友守护 */
    public static final String FUNCTION_SWITCH_FRIEND_MANAGER = "friend";//亲友管理
    public static final String FUNCTION_SWITCH_SAFE = "safe";//亲友互助
    public static final String FUNCTION_SWITCH_SAFE_RECORD = "safeRecord";//守护记录
    /** 线索 */
    public static final String FUNCTION_SWITCH_CLUE = "clue";//线索举报
    public static final String FUNCTION_SWITCH_CLUE_PETITION_ONLINE = "clueLetters";//网上信访
    public static final String FUNCTION_SWITCH_CLUE_LUCKY_CAR = "luckyCar";//随手拍
    /** 个人中心id*/
    public static final String PERSON_ID_ALART_HISTORY = "alertHistory"; //报警历史
    public static final String FUNCTION_SWITCH_MY_SCORE = "myScore";//我的积分
    public static final String PERSON_ID_CERTFICATION = "certification"; //实名认证
    public static final String PERSON_ID_MY_SERVICE = "myService"; //我的服务
    public static final String PERSON_ID_ABOAT_US = "aboutUs"; //关于我们
    public static final String PERSON_ID_UPDATE = "update"; //版本更新
    public static final String FUNCTION_SWITCH_RECOMMEND_FRIEND = "recommend";//推荐好友
    public static final String PERSON_ID_CONFIG = "config"; //设置
    public static final String PERSON_ID_MY_WORK = "myWork"; //我的工作fireInspection
    public static final String PERSON_ID_MY_FIRE_INSPECTION = "fireInspection"; //消防巡检
    public static final String PERSON_ID_MY_CLUE = "clueMy"; //我的线索
    public static final String PERSON_ID_MY_QUESTION = "question"; //我的问题
    public static final String PERSON_ID_OPERATION_MANUAL = "operationManual"; //操作手册
    public static final String PERSON_ID_MY_BALLOT = "myBallot"; //我的民意
    /** 警务服务id*/
    public static final String FUNCTION_ID_BALLOT = "ballot";//社情民意
    /** 我的code */
    public static final String FUNCTION_MY_JOB = "myJob";//我的工作
    public static final String FUNCTION_ASKFOR = "askFor";//我的申请

    public static final String PHONE_ALARM_SILENCE_110 = "200";//110报警
    public static final String SMS_ALARM_SILENCE_110 = "203";//短信报警
    public static final String PHONE_ALARM_SILENCE_122 = "204";//122报警

    public static final String INVITATION_CODE = "invitation_code";
    public static final String INVITATION_GROUP_ID = "invitation_group_id";

    public static final String VIDEO_CALL = "VIDEO_CALL";
    public static final String TEXT_CALL = "TEXT_CALL";
    public static final String PUSH_INFO = "PUSH_INFO";
    /** 聊天消息推送 */
    public static final String R_MSG_RECEIVE = "R_MSG_RECEIVE";
    /** 收到民警坐标 */
    public static final String R_COORDINATE_CHANGE_NOTICE = "R_COORDINATE_CHANGE_NOTICE";
    /** 上传本身坐标 */
    public static final String S_UPLOAD_USER_COORDINATE = "S_UPLOAD_USER_COORDINATE";
    /** 收到停止上传坐标通知 */
    public static final String R_STOP_UPLOAD_COORDINATE_NOTICE = "R_STOP_UPLOAD_COORDINATE_NOTICE";
    /** 发送给服务端  需要接受警员坐标 */
    public static final String S_START_RECEIVE_COORDINATE = "S_START_RECEIVE_COORDINATE";
    /** 发送给服务端  不需要接受警员坐标了 */
    public static final String S_STOP_RECEIVE_COORDINATE = "S_STOP_RECEIVE_COORDINATE";
    /** 需要上传坐标通知 */
    public static final String R_START_UPLOAD_COORDINATE_NOTICE = "R_START_UPLOAD_COORDINATE_NOTICE";
    /** 有个取消监听的 */
    public static final String R_ALARM_CASE_COMPLETE_NOTICE = "R_ALARM_CASE_COMPLETE_NOTICE";
    /** 消息列表 以及退出通知 */
    public static final String R_ALARM_CASE_HANGUP_NOTICE = "R_ALARM_CASE_HANGUP_NOTICE";
   /** 接警台繁忙，超时挂断 */
    public static final String R_ALARM_CASE_TIMEOUT_NOTICE = "R_ALARM_CASE_TIMEOUT_NOTICE";
    /** 报警提示文字 */
    public static final String R_ALARM_TIPS_NOTICE = "R_ALARM_TIPS_NOTICE";
    /** 接警台处警通知(websocket) */
    public static final String R_ALARM_CASE_HANDLE_NOTICE = "R_ALARM_CASE_HANDLE_NOTICE";
    /** 警察认领 **/
    public static final String ALARM_WAS_HANDLED_BY_POLICE = "ALARM_WAS_HANDLED_BY_POLICE";
    /** 安全到达（推送） */
    public static final String SAFETY_FINISH = "SAFETY_FINISH";
    /** 发布新信息（守护人 发布文章图片信息） */
    public static final String SAFETY_NEW_AFFIX = "SAFETY_NEW_AFFIX";
    /** 接通了 */
    public static final String R_ALARM_RECEIVED_ALARM_NOTICE  = "R_ALARM_RECEIVED_ALARM_NOTICE";
    /**集合-队伍互助邀请*/
    public static final String HELP_INVITE = "HELP_INVITE";
    /**集合-加入队伍邀请*/
    public static final String GROUP_INVITE = "GROUP_INVITE";
    /** 转接 接警台名称 */
    public static final String R_ACCEPT_TRANSFER_ALARM = "R_ACCEPT_TRANSFER_ALARM";
    /** 接警台取消回拨 */
    public static final String R_CANCEL = "R_CANCEL";

    /** 122接警台已处理 */
    public static final String ALARM_TRAFFIC_HANDLED_BY_POLICE = "ALARM_TRAFFIC_HANDLED_BY_POLICE";
    /** 122警情有新的禁毒 */
    public static final String ALARM_TRAFFIC_FEEDBACK_BY_POLICE = "ALARM_TRAFFIC_FEEDBACK_BY_POLICE";

    public static final String APP_PERSON = "/app/PERSON";

    public static final String CaseId = "caseId";
    public static final String SignalingServer = "signalingServer";
    public static final String signalingBean = "signalingBean";
    public static final String RoomId = "roomId";
    public static final String Pin = "pin";
    public static final String Secret = "secret";
    public static final String Receiver = "receiver";
    public static final String Time = "time";
    public static final String ackUserId = "ackUserId";
    public static final String messageId = "messageId";
    public static final String topicId = "topicId";
    public static final String lat = "lat";
    public static final String lng = "lng";
    public static final String latitude = "latitude";
    public static final String longitude = "longitude";
    public static final String address = "address";
    public static final String adCode = "adCode";
    public static final String province = "province";
    public static final String city = "city";
    public static final String district = "district";
    public static final String street = "street";
    public static final String country = "country";
    public static final String createTime = "createTime";
    public static final String userId = "userId";
    public static final String txId = "txId";
    public static final String ROLE = "role";
    public static final String SAFE = "safe";
    public static final String msgType = "msgType";
    public static final String msgName = "msgName";

    public static final String CHANGE_APP_LOGO_DISENABLE = "CHANGE_APP_LOGO_DISENABLE";
    public static final String CHANGE_APP_LOGO_ENABLE = "CHANGE_APP_LOGO_ENABLE";
    public static final String FIRST_COMEIN_FEEDBACK = "FIRST_COMEIN_FEEDBACK"; //是否首次进入反馈问题页面
    public static final String IS_NEED_UPDATE_COORDINETE = "IS_NEED_UPDATE_COORDINETE"; //连接上websocket之后 请求是否需要上传坐标的结果

    public static final String SEND_HOME_MODEL_GO_CERTFICATE = "SEND_HOME_MODEL_GO_CERTFICATE"; //通知全部功能页面跳转实名认证
    public static final String SEND_HOME_MODEL_GO_SHARE = "SEND_HOME_MODEL_GO_SHARE"; //通知全部功能页面弹出分享
    public static final String SEND_HOME_MODEL_GO_UPDATE = "SEND_HOME_MODEL_GO_UPDATE"; //通知全部功能页面版本更新
    public static final String COMMIT_LOCATION_NUM = "COMMIT_LOCATION_NUM";

    public static final String IS_SHOW_CLUE = "IS_SHOW_CLUE"; //我的页面是否显示线索
    public static final String IS_SHOW_POLICE = "IS_SHOW_POLICE"; //我的页面是否显示警务服务

    public static final String[] LETTER_ARRAY = {"A", "B", "C", "D", "E", "F", "G",
            "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T",
            "U", "V", "W", "X", "Y", "Z", "#"};

    public static final String PLATFORM = "platform";
    public static final String SKYNET = "skynet";
    public static final String URLMODIFY = "urlModify";

    //-1 取消下载 下载失败 0 下载中 1下载完成
    public static int appDownloadState = -1;

    public static final int PERMISSIONS_CODE_LOGIN = 1;
    public static final int PERMISSIONS_CODE_BASE_A = 2;
    public static final int PERMISSIONS_CODE_BASE_F = 3;
    public static final int PERMISSIONS_CODE_BASE_CONTACTS = 4;
    public static final int PERMISSIONS_CODE_SAFE = 5;
    public static final int PERMISSIONS_CODE_VIDEO_CALL = 6;
    public static final int PERMISSIONS_CODE_ALARM_UTIL = 7;
    public static final int PERMISSIONS_CODE_OTHER = 8;

    public static final long KEEP_REFRESH_LOCATION_DURATION = 60 * 60 * 1000;

    public static boolean showBlackView;

    public static final String IMAGE_1 = "image1st";
    public static final String IMAGE_2 = "image2nd";
    public static final String VIDEO_ = "video";
}
